< previous page page_665 next page >

Page 665
(table continued from previous page)
ControlPropertySetting
Top3000
Width3000
Command ButtonNameCommand1
CaptionRefresh
Height300
Left2580
Top3480
Width1200

0665-01.jpg
Figure 17.8.
Laying out the 
MULTIUS3.FRM form.
Only two lines of Visual Basic code are needed to complete the form. Add the following lines to the Command1_Click event. These two lines update both data controls and their associated grids:
Private Sub Command1_Click()
    Data1.Refresh
    Data2.Refresh
End Sub
Save the form as MULTIUS3.FRM and the project as MULTIUS3.VBP, and then run the project. Now you're ready to test the cascading updates and deletes.
Running the Cascading Demo Project
When you run the project, you see the two tables displayed in each grid, side by side. First, test the update cascade by editing one of the records in the Valid Types table. Select the first

 
< previous page page_665 next page >

If you like this book, buy it!